package com.bole.feign;


import com.bole.data.Result;
import com.bole.dto.car.TbCarDto;
import com.bole.dto.img.TbCarImgDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "BOLECAR-BACKSTAGE-SERVICE")
public interface CarFeign {

    @GetMapping("/car/getCarInfo")
     List<TbCarDto> getCarInfo();

    @PostMapping("/car/updateCar")
    void saveContentCateInfo(@RequestParam("ids[]")Long[] ids);

    @GetMapping("/car/getCarInfoSix")
    List<TbCarDto> getCarInfoSix();

    @PostMapping("/car/getCarById")
    TbCarDto getCarById(@RequestParam("carId")Long carId);

    @GetMapping("/car/getCarByUserId/{userId}")
    Result getCarByUserId(@PathVariable("userId") Long userId);


    @DeleteMapping("/car/revoke/{carId}")
    Result revoke(@PathVariable("carId") Long carId);

    //修改为售出状态4
    @PostMapping("/car/updateStutsCar")
    //审核通过为1 未通过2 ,售出为4
    void updateStutsCar(@RequestParam("id") Long id);
}
